#pragma once
#include "d3dApp.h"
#include <tchar.h>
#include <crtdbg.h>
#include "GfxStats.h"
#include "DInput.h"
#include <time.h>
#include "DirectSound.h"
#include "dsound.h"


// enums
#include "enums.h"




class BallSmackers : public D3DApp
{

public:
	BallSmackers(HINSTANCE hInstance, std::string winCaption, D3DDEVTYPE devType, DWORD requestedVP);
	~BallSmackers();

	/********************Needed for any program you instantiate***************************/
	bool checkDeviceCaps();
	void onLostDevice();
	void onResetDevice();
	void updateScene(float dt);
	void drawScene();
	/*************************************************************************************/

	void drawMenuState();
	void drawTwoPlayerState();
	void drawThreePlayerState();
	void drawFourPlayerState();

	

//	//the one and only sprite interface through which we do all of our sprite drawing
//	ID3DXSprite* mSprite;
	//background properties
	IDirect3DTexture9* mBkgdTex;
	D3DXVECTOR3 mBkgdCenter;
	IDirect3DTexture9* TwoPlayerMenuTex;
	D3DXVECTOR3 TwoPlayerMenuCenter;
	IDirect3DTexture9* ThreePlayerMenuTex;
	D3DXVECTOR3 ThreePlayerMenuCenter;
	IDirect3DTexture9* FourPlayerMenuTex;
	D3DXVECTOR3 FourPlayerMenuCenter;

	

	
private:
	GfxStats* mGfxStats;	
	ID3DXFont* mFont;

	// adds in the sound class
	CDirectSound sound;

	

	
};
